package com.itheima.duotai2;

public class Test {
    public static void main(String[] args) {
        Fu fu = new Zi();//多态
        Zi zi = new Zi();
        System.out.println(zi.s);
        //成员变量
        System.out.println(fu.a);
        System.out.println(fu.s);//运行也看左边
       // System.out.println(fu.b); 编译 看左边
    }
}
class Fu{
    String  s="abc";
    String  a="aaa";
}
class Zi extends Fu{
    String  s="def";
    String b="bbb";
}